<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Rozproszony_system_koordynacji_agentow_mobilnych: Dokumentacja klasy Segment</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Wygenerowano przez Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="main.html"><span>Strona&nbsp;główna</span></a></li>
      <li class="current"><a href="annotated.html"><span>Struktury&nbsp;Danych</span></a></li>
      <li><a href="files.html"><span>Pliki</span></a></li>
      <li><a href="dirs.html"><span>Katalogi</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Struktury&nbsp;danych</span></a></li>
      <li><a href="classes.html"><span>Indeks&nbsp;struktur&nbsp;danych</span></a></li>
      <li><a href="functions.html"><span>Pola&nbsp;danych</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Metody publiczne</a> &#124;
<a href="#pub-attribs">Pola danych</a>  </div>
  <div class="headertitle">
<h1>Dokumentacja klasy Segment</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Segment" -->
<p>Klasa opisujaca odcienek(prosta) w przestrzeni dwuwymiarowej.  
<a href="#_details">Więcej...</a></p>

<p><code>#include &lt;<a class="el" href="Segment_8hh_source.html">Segment.hh</a>&gt;</code></p>
<div class="dynheader">
Diagram współpracy dla Segment:</div>
<div class="dyncontent">
<div class="center"><img src="classSegment__coll__graph.png" border="0" usemap="#Segment_coll__map" alt="Collaboration graph"/></div>
<map name="Segment_coll__map" id="Segment_coll__map">
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legenda</a>]</span></center></div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Metody publiczne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSegment.html#adfe9fc7ffcc7269f961d4b1f6720d1e8">Segment</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSegment.html#afe7dbfc7a1e3a9473ac070ac0c203b19">Segment</a> (<a class="el" href="classCoordinates.html">Coordinates</a> start, <a class="el" href="classCoordinates.html">Coordinates</a> end)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Konstruktor parametryczny klasy <a class="el" href="classSegment.html" title="Klasa opisujaca odcienek(prosta) w przestrzeni dwuwymiarowej.">Segment</a>.  <a href="#afe7dbfc7a1e3a9473ac070ac0c203b19"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSegment.html#a65b7aee9efda45769c2aa5180218d888">SetVelocity</a> (double v)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSegment.html#a76b45a453304f1f485e3bc2fcad58b59">~Segment</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Pola danych</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCoordinates.html">Coordinates</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSegment.html#abaf11cb5b3b623c9dc278ca7bac5bdf0">_End</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">koniec odcinka  <a href="#abaf11cb5b3b623c9dc278ca7bac5bdf0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCoordinates.html">Coordinates</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSegment.html#ae628193c6d019a46071bf2d649e8b57b">_Start</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">poczatek odcinka  <a href="#ae628193c6d019a46071bf2d649e8b57b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSegment.html#a1b3d58ab45b040d60ba2fb6385526fda">_XParamA</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSegment.html#add1eb7f6085946f04808ac96eff4a2a6">_XParamB</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">wspolczynniki rownania opisujacego ruch dla osi X=at+b  <a href="#add1eb7f6085946f04808ac96eff4a2a6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSegment.html#a951ffa6de4422a7bfe8955753775cde8">_YParamA</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classSegment.html#a7515a9f8f060e6b9a806bbdabf5a1679">_YParamB</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">wspolczynniki rownania opisujacego ruch dla osi Y=at+b  <a href="#a7515a9f8f060e6b9a806bbdabf5a1679"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Opis szczegółowy</h2>
<p>Klasa opisujaca odcienek(prosta) w przestrzeni dwuwymiarowej. Zostala wykorzystana jako element skladowy trasy mobilnego agenta. </p>

<p>Definicja w linii <a class="el" href="Segment_8hh_source.html#l00024">24</a> pliku <a class="el" href="Segment_8hh_source.html">Segment.hh</a>.</p>
<hr/><h2>Dokumentacja konstruktora i destruktora</h2>
<a class="anchor" id="adfe9fc7ffcc7269f961d4b1f6720d1e8"></a><!-- doxytag: member="Segment::Segment" ref="adfe9fc7ffcc7269f961d4b1f6720d1e8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Segment::Segment </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definicja w linii <a class="el" href="Segment_8hh_source.html#l00031">31</a> pliku <a class="el" href="Segment_8hh_source.html">Segment.hh</a>.</p>

</div>
</div>
<a class="anchor" id="afe7dbfc7a1e3a9473ac070ac0c203b19"></a><!-- doxytag: member="Segment::Segment" ref="afe7dbfc7a1e3a9473ac070ac0c203b19" args="(Coordinates start, Coordinates end)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Segment::Segment </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classCoordinates.html">Coordinates</a>&nbsp;</td>
          <td class="paramname"> <em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classCoordinates.html">Coordinates</a>&nbsp;</td>
          <td class="paramname"> <em>end</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Konstruktor tworzacy obiekt odcinka(prostej) </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>start</em>&nbsp;</td><td>- poczatek odcinka </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>end</em>&nbsp;</td><td>- koniec odcinka </td></tr>
  </table>
  </dd>
</dl>
<dl class="post"><dt><b>Warunek końcowy:</b></dt><dd>Tworzona trasa (odcinek trasy) jest opisana ruchem jednostajnym z wypadkowa predkoscia 1. </dd></dl>

<p>Definicja w linii <a class="el" href="Segment_8cpp_source.html#l00015">15</a> pliku <a class="el" href="Segment_8cpp_source.html">Segment.cpp</a>.</p>

<p>Odwołuje się do <a class="el" href="Segment_8hh_source.html#l00027">_End</a>, <a class="el" href="Segment_8hh_source.html#l00026">_Start</a>, <a class="el" href="Coordinates_8hh_source.html#l00026">Coordinates::_x</a>, <a class="el" href="Segment_8hh_source.html#l00028">_XParamA</a>, <a class="el" href="Segment_8hh_source.html#l00028">_XParamB</a>, <a class="el" href="Coordinates_8hh_source.html#l00026">Coordinates::_y</a>, <a class="el" href="Segment_8hh_source.html#l00029">_YParamA</a> i <a class="el" href="Segment_8hh_source.html#l00029">_YParamB</a>.</p>

</div>
</div>
<a class="anchor" id="a76b45a453304f1f485e3bc2fcad58b59"></a><!-- doxytag: member="Segment::~Segment" ref="a76b45a453304f1f485e3bc2fcad58b59" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Segment::~Segment </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definicja w linii <a class="el" href="Segment_8cpp_source.html#l00029">29</a> pliku <a class="el" href="Segment_8cpp_source.html">Segment.cpp</a>.</p>

</div>
</div>
<hr/><h2>Dokumentacja funkcji składowych</h2>
<a class="anchor" id="a65b7aee9efda45769c2aa5180218d888"></a><!-- doxytag: member="Segment::SetVelocity" ref="a65b7aee9efda45769c2aa5180218d888" args="(double v)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Segment::SetVelocity </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>v</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Funkcja pozwalajaca na zmiane predkosci ruchu w segmencie. </p>

<p>Definicja w linii <a class="el" href="Segment_8cpp_source.html#l00033">33</a> pliku <a class="el" href="Segment_8cpp_source.html">Segment.cpp</a>.</p>

<p>Odwołuje się do <a class="el" href="Segment_8hh_source.html#l00028">_XParamA</a> i <a class="el" href="Segment_8hh_source.html#l00029">_YParamA</a>.</p>

</div>
</div>
<hr/><h2>Dokumentacja pól</h2>
<a class="anchor" id="abaf11cb5b3b623c9dc278ca7bac5bdf0"></a><!-- doxytag: member="Segment::_End" ref="abaf11cb5b3b623c9dc278ca7bac5bdf0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCoordinates.html">Coordinates</a> <a class="el" href="classSegment.html#abaf11cb5b3b623c9dc278ca7bac5bdf0">Segment::_End</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definicja w linii <a class="el" href="Segment_8hh_source.html#l00027">27</a> pliku <a class="el" href="Segment_8hh_source.html">Segment.hh</a>.</p>

<p>Odwołania w <a class="el" href="Agent_8cpp_source.html#l00697">Agent::ChangeStartOfCordSysForSegment()</a>, <a class="el" href="Agent_8cpp_source.html#l00716">Agent::FindLinePerpendicularToPoint()</a>, <a class="el" href="Agent_8cpp_source.html#l00620">Agent::FindPathResolvingForbiddenSector()</a> i <a class="el" href="Segment_8cpp_source.html#l00015">Segment()</a>.</p>

</div>
</div>
<a class="anchor" id="ae628193c6d019a46071bf2d649e8b57b"></a><!-- doxytag: member="Segment::_Start" ref="ae628193c6d019a46071bf2d649e8b57b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classCoordinates.html">Coordinates</a> <a class="el" href="classSegment.html#ae628193c6d019a46071bf2d649e8b57b">Segment::_Start</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definicja w linii <a class="el" href="Segment_8hh_source.html#l00026">26</a> pliku <a class="el" href="Segment_8hh_source.html">Segment.hh</a>.</p>

<p>Odwołania w <a class="el" href="Agent_8cpp_source.html#l00697">Agent::ChangeStartOfCordSysForSegment()</a>, <a class="el" href="Agent_8cpp_source.html#l00716">Agent::FindLinePerpendicularToPoint()</a>, <a class="el" href="Agent_8cpp_source.html#l00620">Agent::FindPathResolvingForbiddenSector()</a> i <a class="el" href="Segment_8cpp_source.html#l00015">Segment()</a>.</p>

</div>
</div>
<a class="anchor" id="a1b3d58ab45b040d60ba2fb6385526fda"></a><!-- doxytag: member="Segment::_XParamA" ref="a1b3d58ab45b040d60ba2fb6385526fda" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classSegment.html#a1b3d58ab45b040d60ba2fb6385526fda">Segment::_XParamA</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definicja w linii <a class="el" href="Segment_8hh_source.html#l00028">28</a> pliku <a class="el" href="Segment_8hh_source.html">Segment.hh</a>.</p>

<p>Odwołania w <a class="el" href="Agent_8cpp_source.html#l00594">Agent::CalculateCollisionPoints()</a>, <a class="el" href="Agent_8cpp_source.html#l00735">Agent::FindCrossPointBetweenSegments()</a>, <a class="el" href="Agent_8cpp_source.html#l00716">Agent::FindLinePerpendicularToPoint()</a>, <a class="el" href="Segment_8cpp_source.html#l00015">Segment()</a> i <a class="el" href="Segment_8cpp_source.html#l00033">SetVelocity()</a>.</p>

</div>
</div>
<a class="anchor" id="add1eb7f6085946f04808ac96eff4a2a6"></a><!-- doxytag: member="Segment::_XParamB" ref="add1eb7f6085946f04808ac96eff4a2a6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classSegment.html#add1eb7f6085946f04808ac96eff4a2a6">Segment::_XParamB</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definicja w linii <a class="el" href="Segment_8hh_source.html#l00028">28</a> pliku <a class="el" href="Segment_8hh_source.html">Segment.hh</a>.</p>

<p>Odwołania w <a class="el" href="Agent_8cpp_source.html#l00697">Agent::ChangeStartOfCordSysForSegment()</a>, <a class="el" href="Agent_8cpp_source.html#l00735">Agent::FindCrossPointBetweenSegments()</a>, <a class="el" href="Agent_8cpp_source.html#l00716">Agent::FindLinePerpendicularToPoint()</a> i <a class="el" href="Segment_8cpp_source.html#l00015">Segment()</a>.</p>

</div>
</div>
<a class="anchor" id="a951ffa6de4422a7bfe8955753775cde8"></a><!-- doxytag: member="Segment::_YParamA" ref="a951ffa6de4422a7bfe8955753775cde8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classSegment.html#a951ffa6de4422a7bfe8955753775cde8">Segment::_YParamA</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definicja w linii <a class="el" href="Segment_8hh_source.html#l00029">29</a> pliku <a class="el" href="Segment_8hh_source.html">Segment.hh</a>.</p>

<p>Odwołania w <a class="el" href="Agent_8cpp_source.html#l00594">Agent::CalculateCollisionPoints()</a>, <a class="el" href="Agent_8cpp_source.html#l00735">Agent::FindCrossPointBetweenSegments()</a>, <a class="el" href="Agent_8cpp_source.html#l00716">Agent::FindLinePerpendicularToPoint()</a>, <a class="el" href="Segment_8cpp_source.html#l00015">Segment()</a> i <a class="el" href="Segment_8cpp_source.html#l00033">SetVelocity()</a>.</p>

</div>
</div>
<a class="anchor" id="a7515a9f8f060e6b9a806bbdabf5a1679"></a><!-- doxytag: member="Segment::_YParamB" ref="a7515a9f8f060e6b9a806bbdabf5a1679" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="classSegment.html#a7515a9f8f060e6b9a806bbdabf5a1679">Segment::_YParamB</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definicja w linii <a class="el" href="Segment_8hh_source.html#l00029">29</a> pliku <a class="el" href="Segment_8hh_source.html">Segment.hh</a>.</p>

<p>Odwołania w <a class="el" href="Agent_8cpp_source.html#l00697">Agent::ChangeStartOfCordSysForSegment()</a>, <a class="el" href="Agent_8cpp_source.html#l00735">Agent::FindCrossPointBetweenSegments()</a>, <a class="el" href="Agent_8cpp_source.html#l00716">Agent::FindLinePerpendicularToPoint()</a> i <a class="el" href="Segment_8cpp_source.html#l00015">Segment()</a>.</p>

</div>
</div>
<hr/>Dokumentacja dla tej klasy została wygenerowana z plików:<ul>
<li><a class="el" href="Segment_8hh_source.html">Segment.hh</a></li>
<li><a class="el" href="Segment_8cpp_source.html">Segment.cpp</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Wygenerowano Thu Dec 15 2011 16:57:11 dla Rozproszony_system_koordynacji_agentow_mobilnych programem&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
